public class LQB_code1_5 {
    public static void main(String[] args) {
        int count = 0;
        int a = 2019;
        int b = 324;
        while (b!=0){
            count +=(a/b);
            int c = a;
            a=b;
            b=c%b;
        }
        System.out.println(count);
    }
}
